/**
 * 
 */
package com.baijia.tianxiao.push.result;

import java.util.ArrayList;
import java.util.List;

/**
 * @author leiruiqi
 *
 */
public class BaseBizResult {

	private boolean success;
	
	private String code;
	
	private String msg;
	
	private List<String> msgs;
	
	private Object result;
	
	public BaseBizResult(){
		
	}
	
	public BaseBizResult(boolean success,String message){
		this.success = success;
		this.msg = message;
		
	}
	
	public BaseBizResult(boolean success,String message,String code){
		this.success = success;
		this.msg = message;
		this.code = code;
	}
	

	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<String> getMsgs() {
		return msgs;
	}

	public void setMsgs(List<String> msgs) {
		this.msgs = msgs;
	}

	public void addMsg(String msgStr){
		if(msgs == null){
			msgs = new ArrayList<String>();
		}
		msgs.add(msgStr);
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}
	
}
